package com.lube.codec;

/**
 * 消息实体
 * 
 * @author caizhiping
 * @date 2016年12月21日 上午10:47:56
 */
public class Message {
	private CommandType commandType;
	private int length;
	private Object payload;

	public Message() {

	}

	public Message(CommandType commandType, int length, Object payload) {
		this.commandType = commandType;
		this.length = length;
		this.payload = payload;
	}

	public CommandType getCommandType() {
		return commandType;
	}

	public void setCommandType(CommandType commandType) {
		this.commandType = commandType;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public Object getPayload() {
		return payload;
	}

	public void setPayload(Object payload) {
		this.payload = payload;
	}
}
